<template>
	<div class="index">
	    <video v-for="(item,index) in videoSrc" :key="index" :src="item.file" controls="controls" style="width: 50%;height: 50%"></video>
	</div>	
</template>
<script>
export default {
  name: 'index',
  data () {
   	return{
          videoSrc:[],
   	}
  },
  mounted(){
    this.$http.get("http://127.0.0.1:5000/download").then(res=>{
       console.log(res.data);
        this.videoSrc=res.data
    })
  }
}
</script>